package model;

import java.util.ArrayList;

public class StaffContainer extends PersonContainer
{    private static StaffContainer instance=null;
    
    public StaffContainer()
    { 
    }
    /*public static StaffContainer getInstance(){
        if(instance==null){instance=new StaffContainer();
        }
        return instance;
    }*/
    public void addPerson(Staff staff){
        personCollection.add(staff);
    }
   /* public void printPerson(){
    System.out.println("List of People: ");
    for(Person person:personCollection){
        System.out.println("" + person.getName());
    }
    }*/
    public void removePerson(String address){
        Person person=findPerson(address); 
        if(person !=null){
            boolean ok=personCollection.remove(person);
            if(ok){
                System.out.println("Person with the address " + address + " is now deleted");
                  } 
                }
            else{ System.out.println("There is no one living on " + address);
                }
            }
     public static StaffContainer getInstance() {
        if(instance == null) {
            instance = new StaffContainer();
        }
        return instance;
    }   
   
}
